<?php

require_once('config.inc.php');

page_open( array( 'sess' => 'MySession'
                , 'auth' => 'MyAuth'
                , 'perm' => 'MyPerm'
                )
         );

// ACTIONS
switch (rd_get('action'))
{
case 'logout' :
  // FERMETURE DE LA SESSION 
  $auth->logout();
  page_close();
  require_once('logout.html.php');
  exit();
}

page_close();          

// CONTENU DE LA PAGE
$user_name = Gestion::get_user_name($auth->auth['uid']);

require_once('accueil.html.php');

?>
